import Taro, { Component } from '@tarojs/taro'
import { View, Text ,Radio, RadioGroup, Label, Button} from '@tarojs/components'
import './start.css'
import { AtButton, AtToast } from 'taro-ui'
import { fail } from 'assert';
import { STATUS_CODES } from 'http';
import app from '../../main';

export default class Start extends Component {

  config = {
    navigationBarTitleText: '加载中...'
  }

  constructor(){
    super(...arguments);
  }

  componentWillMount () {
    console.log('c_params', this.$router.params);
    if (this.$router.params.scene) {
      let scene = decodeURIComponent(this.$router.params.scene);
      let arr = scene.split('=');
      app.scan_doctor_id = arr[1];
    }
    app.wxLogin();
  }

  componentDidMount () {}

  componentWillUnmount () { }

  componentDidShow () { }

  componentDidHide () { }
   
  render () {
    return (
      <View>
        <AtToast isOpened text='加载中...' status='loading'></AtToast>
      </View>
    )
  }
}

